#ifndef QRENDERAREA_H
#define QRENDERAREA_H

#include <QWidget>

namespace Ui {
class QRenderArea;
}

class QRenderArea : public QWidget
{
    Q_OBJECT

public:
    explicit QRenderArea(QWidget *parent = nullptr);
    ~QRenderArea();

    QSize minimumSizeHint() const override;
    QSize sizeHint() const override;

    void setColor(QColor *color);
    void setDiameter(int d);
    void setText(QString text);

public slots:
    void draw(bool shouldIDraw);

protected:
    void paintEvent(QPaintEvent *) override;

private:
    Ui::QRenderArea *ui;

    QColor *color;
    int d;
    QString text;
    bool shouldIDraw;
};

#endif // QRENDERAREA_H
